package com.woniuxy.dao;

import java.util.List;

import com.woniuxy.pojo.Permission;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer pmId);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer pmId);
    
    List<Permission> selectByParentId(Integer pId);
    
    List<Permission> selectPersByRid(Integer rId);
    
    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

	List<Permission> getPermissionByUser(Integer userId);
}